<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Settings */

$this->title = Yii::t('app', 'Update Password');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Settings'), 'url' => ['index']];
//$this->params['breadcrumbs'][] = ['label' => $model->setId, 'url' => ['view', 'id' => $model->setId]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update Settings');
?>
<div class="settings-update">
    <?php if(!empty($result)){ ?>
        <div class="<?php if($result['result']){echo 'alert alert-success';}else{echo 'alert alert-danger';}?>"><?php echo Yii::t('app', $result['msg'])?></div>
    <?php }?>
    <div class="settings-form">

        <?php $form = ActiveForm::begin(); ?>

        <?= $form->field($model, 'oldpwd')->textInput(['maxlength' => true, 'autocomplete' => 'off', 'value' => '']) ?>

        <?= $form->field($model, 'newpwd')->textInput(['maxlength' => true, 'autocomplete' => 'off', 'value' => '']) ?>

        <?= $form->field($model, 'repwd')->textInput(['maxlength' => true, 'autocomplete' => 'off', 'value' => '']) ?>

        <div class="form-group">
            <?= Html::submitButton(Yii::t('app', 'Save Icon'), ['class' => 'btn btn-sm btn-success']) ?>
        </div>

        <?php ActiveForm::end(); ?>

    </div>

</div>
